<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2019/3/2
 * Time: 17:24
 */

namespace app\sign\model;



use app\sign\service\showService;

class Registered extends BaseModel
{
    public function getLoanStatusAttr($value, $data)
    {
        if($data['type'] == 'd'){
            $arr = config('status.d');
            return $arr[$value];
        }
        if($data['type'] == 'f'){
            $arr = config('status.f');
            return $arr[$value];
        }
    }

    public function getPhoneAttr($value)
    {
        $phone = substr_replace($value, '*******', 2,7);
        return $value = $phone;
    }
}